Alastair Tse [Fri, 17 Nov 2006 17:57:49 +0000 (17:57 +0000)]
[XEND] Accomodate extra "devices" in SXP that do not have DevControllers
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 17 Nov 2006 17:03:59 +0000 (17:03 +0000)]
[XEND] Revert changes in changeset 12328
Mistakenly reverted some fixes for rebooting, un-reverting.
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 17 Nov 2006 15:53:29 +0000 (15:53 +0000)]
[XEND] Fix missing domains on domU reboot.
Fixed regression with rebooting domU caused by the change in handling
syncing state from Xen and Xend.
Added missing implementation for XendDomainInfo.unwatchVm() which
disappeared during a merge.
Added protection for console/vnc-port reading for managed domains.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 14:00:45 +0000 (14:00 +0000)]
[LIBXC] Replace API uses of size_t with ulong.
Avoids possibility of different FILE_OFFSET_BITS defn.
across the interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 12:13:24 +0000 (12:13 +0000)]
[XEN] Fix build. Mercurial ate my changeset fixups. :-(
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:48:34 +0000 (10:48 +0000)]
[XEN] Restrict access to grant-mapping operations.
TLB flushing is not done strictly before notifying
the mappee -- this creates scope for multi-processor
mapping guests to attempt to abuse a stale mapping
on another VCPU.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:34:08 +0000 (10:34 +0000)]
[QEMU] rtl8139: Disallow chaining above 64K
As it stands the 8139C+ TX chaining is only bounded by realloc failure.
This is contrary to how the real hardware operates. It also has DoS
potential when ioemu runs in dom0.
This patch makes any attempt to chain a frame beyond 64K fail
immediately.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:32:57 +0000 (10:32 +0000)]
[LINUX] Add process profiling hook to timer ISR.
Signed-off-by: Rik van Riel <riel@redhat.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:29:08 +0000 (10:29 +0000)]
HVM cleanups:
1) make vmx/svm time functions hvm common, since they are actually the same.
2) move hvm_send_assist_req from platform.c to hvm.c.
2) rename VMX MSR context switch functions to make them more readable.
3) misc coding style clean ups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:24:22 +0000 (10:24 +0000)]
[HVMLOADER][VTPM] Add support for a TCG ACPI table.
The ACPI table is generated if the probing for the TIS interface
succeeds. I cleaned up the ACPI signatures in acpi2_0.h to be more
readable.
The specification for the layout of these ACPI tables can be found here:
https://www.trustedcomputinggroup.org/groups/server/TCG_ACPIGeneralSpecification_1-00_1-00_FINAL.pdf
Extensions to the Bochs BIOS that use these ACPI extensions will follow.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:05:12 +0000 (10:05 +0000)]
[OPROFILE] Add support for core and core2 chips.
Tested on Woodcrest processors. Requires Oprofile 0.9.2.
Signed-off-by: Andrew Theurer <habanero@us.ibm.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 10:02:54 +0000 (10:02 +0000)]
[HVMLOADEr] Reserve MMIO 0xa0000 to 0xc0000 in ACPI dsdt.
Avoids possible vga driver loading problem in HVM Windows guest.
Also fixes a Makefile bug in hvmloader directory.
Signed-off-by: Qing He <qing.he@intel.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:54:48 +0000 (09:54 +0000)]
[TOOLS] Provide common LFS CFLAGS/LDFLAGS additions in Rules.mk.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:18:28 +0000 (09:18 +0000)]
[MINIOS] Refactor spinlock header for multi-arch support.
I separated the spinlock parts special to the x86 architecture and
moved these to include/x86/arch_spinlock.h. The common code is now in
include/spinlock.h.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:16:51 +0000 (09:16 +0000)]
[MINIOS] Event channel hypercall update for 64-bit guests.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:16:27 +0000 (09:16 +0000)]
[MINIOS] Move initialisation of events (masking event channels)
earlier during the boot process. Otherwise 64bit guests would
sometimes crash.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
kfraser@localhost.localdomain [Thu, 16 Nov 2006 18:29:06 +0000 (18:29 +0000)]
[XEN] Add missing #include.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 16 Nov 2006 18:28:05 +0000 (18:28 +0000)]
[XEN] Scheduling hypercalls defer entry to the scheduler to softirq
context.
This avoids entering the scheduler with outstanding multicall state
and also happens to simplify the x86 entry protocol to the scheduler
hypercall (since we do not need to preset the return code).
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 16 Nov 2006 17:07:23 +0000 (17:07 +0000)]
[HVM] Decouple the RTC from the PIT periodic timer
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 16 Nov 2006 15:20:05 +0000 (15:20 +0000)]
[XEN] Remove redundant calls to check_for_early_unshadow()
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Alastair Tse [Thu, 16 Nov 2006 13:49:05 +0000 (13:49 +0000)]
[XEND] Fix PCI configuration parsing and SXP output
PCI configuration is formatted differently from other device
configurations because of the requirement that all pci devices need to
be present when it is initialised.
Signed-off-by: Alastair Tse <atse@xensource.com>
kasai.takanori@jp.fujitsu.com [Thu, 16 Nov 2006 13:13:55 +0000 (13:13 +0000)]
Add to select keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Ewan Mellor [Thu, 16 Nov 2006 11:11:17 +0000 (11:11 +0000)]
Fix clobbering bug when hde is specified; QEMU only supports up to hdd, but
hde is accepted and writes off the end of some tables.
From Hiromichi Itou <ito@begi.net>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Thu, 16 Nov 2006 10:52:03 +0000 (10:52 +0000)]
[HVM] Disallow PTE updates and MMIO accesses from hypervisor mode
(prevents copy_to/from_guest from causing problems, for example).
Signed-off-by: Keir Fraser <keir@xensource.com>
kasai.takanori@jp.fujitsu.com [Thu, 16 Nov 2006 10:50:21 +0000 (10:50 +0000)]
Fix of floppy disk configuration check
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Ewan Mellor [Thu, 16 Nov 2006 10:44:23 +0000 (10:44 +0000)]
This patch improves an usage message about xm dump-core command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Ewan Mellor [Thu, 16 Nov 2006 10:28:26 +0000 (10:28 +0000)]
Fix cpu_cap option.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Ewan Mellor [Thu, 16 Nov 2006 10:26:20 +0000 (10:26 +0000)]
Improve error message when trying to pause / unpause domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Ewan Mellor [Thu, 16 Nov 2006 10:25:23 +0000 (10:25 +0000)]
Fix xm migrate error message when trying to migrate domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Nov 2006 08:56:58 +0000 (08:56 +0000)]
[NET] back: Fix bug in 12262:
ac2097d71e06dbbf77279af10d6ae7359d921ab0.
Pointed out by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Nov 2006 07:48:37 +0000 (07:48 +0000)]
[IA64] Fix build breakage.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Nov 2006 07:41:01 +0000 (07:41 +0000)]
Xen trivial build fix. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com>
Andrew Warfield [Wed, 15 Nov 2006 20:50:17 +0000 (12:50 -0800)]
[BLKTAP] Little error handling fix to blktapctrl.c.
Signed-off-by: Andrew Warfield <andy@xensource.com>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 18:41:06 +0000 (18:41 +0000)]
[XEN] Various selector and callback cleanups to simplify the tools
and assumptions about callback selector values on x86/32.
Original patch from Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 16:53:43 +0000 (16:53 +0000)]
[BUILDER] Simplify vcpu context initialisation by pre-zeroing
the context structure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 16:44:35 +0000 (16:44 +0000)]
[XEN] Define remaining x86 public pointer fields as guest handles.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 14:59:57 +0000 (14:59 +0000)]
[TOOLS] Rename chekc_hotplug to check_udev and fix permissions.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Wed, 15 Nov 2006 14:36:10 +0000 (14:36 +0000)]
[XEN] Track high-water-mark of p2m map
and so avoid some unnecessary __copy_from_user faults.
Also tidy the p2m functions generally.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Wed, 15 Nov 2006 09:44:12 +0000 (09:44 +0000)]
Add the VNC port to the output of xm list --long, if the value has been written
to xenstore by QEMU.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 09:33:01 +0000 (09:33 +0000)]
[MINIOS] Add timer support.
Based on an original patch by Robert Kaiser.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
kfraser@localhost.localdomain [Wed, 15 Nov 2006 09:30:44 +0000 (09:30 +0000)]
[LIBXC] Clarify error messages to talk about allocation 'extents'
rather than 'pages'.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Steven Smith [Wed, 15 Nov 2006 08:54:16 +0000 (08:54 +0000)]
[PV-ON-HVM] Correct some out of date documentation.
Noticed-by: Nowatzki, Thomas L <Thomas.Nowatzki@UNISYS.com>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kaf24@localhost.localdomain [Wed, 15 Nov 2006 00:14:41 +0000 (00:14 +0000)]
merge with xen-ia64-unstable.hg
awilliam@xenbuild.aw [Tue, 14 Nov 2006 21:59:37 +0000 (14:59 -0700)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 14 Nov 2006 19:46:33 +0000 (12:46 -0700)]
[IA64] remove ASSERT in vmx_init.c
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 14 Nov 2006 19:45:15 +0000 (12:45 -0700)]
[IA64] Add CCISS driver to build config and change nbd to a module
LVM complains a lot when nbd is built into the kernel
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Andrew Warfield [Tue, 14 Nov 2006 19:20:45 +0000 (11:20 -0800)]
Fix breakage of blktap device strings from cset
63d1b02dad347e8feb845d8a8b482e251a478164.
Signed-off-by: Andrew Warfield <andy@xensource.com>
Ewan Mellor [Tue, 14 Nov 2006 18:52:58 +0000 (18:52 +0000)]
Fix xm block-configure, by allowing the device ID to be unspecified inside
device_configure (in which case it will be specified by the incoming config).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Tue, 14 Nov 2006 18:21:51 +0000 (18:21 +0000)]
Speed up shadow of x86_64 Linux guests using 3 paging levels.
Linux kernel 2.6.9 or older uses 3 paging levels and its direct map is
from 0x10000000000.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Tim Deegan [Tue, 14 Nov 2006 17:11:45 +0000 (17:11 +0000)]
[XEN] Extend fix from 12403:
680b37789200 to other emulation paths.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 17:00:05 +0000 (17:00 +0000)]
[LINUX] x86/64: Fix backward compatibility to Xen 3.0.2.
This requires us to explicitly specify _PAGE_USER for kernel mappings.
Original patch by Jan Beulich <jbeulich@novell.com> and Gerd Hoffmann.
Signed-off-by: Keir Fraser <keir@xensource.com>
George Dunlap [Tue, 14 Nov 2006 16:21:26 +0000 (11:21 -0500)]
[XEN] Fix the "early unshadow" optimization to look at the entire pte.
The optimization is designed to detect pagetable destruction, but re-uses the
pagetable entries to store data under certain conditions (paging, zeroing, &c);
sometimes the lower 8 bits are 0. These "false positives" cause unnecessary
shadowing and unshadowing.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 11:57:53 +0000 (11:57 +0000)]
[LINUX] Preserve flags when converting PTEs from machine to phys.
Signed-off-by: John Byrne <john.l.byrne@hp.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 11:55:58 +0000 (11:55 +0000)]
[XENPERF] Pretty-print hypercall stats.
From: Yoshihiko Yaegashi <y.yaegashi@jp.fujitsu.com>
From: Ken Hironaka <kenny@logos.ic.i.u-tokyo.ac.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Tue, 14 Nov 2006 11:52:38 +0000 (11:52 +0000)]
[XEN] Don't pass spurious reserved-bit faults to the guest
since x86_64 linux can't handle them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 14 Nov 2006 11:47:26 +0000 (11:47 +0000)]
[XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
because they will not be there.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:56:07 +0000 (10:56 +0000)]
[XEN][POWERPC] Change license on public/ headers from GPL to BSD.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:48:17 +0000 (10:48 +0000)]
[VMXASSIST] Remove unused variable declarations to avoid compiler warning.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:46:34 +0000 (10:46 +0000)]
[IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.
Signed-off-by, Anthony Xu < anthony.xu@intel.com >
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:44:16 +0000 (10:44 +0000)]
[HVM] vlapic: More cleanups, simplifications and fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
jfehlig@jfehlig2.provo.novell.com [Tue, 14 Nov 2006 00:23:49 +0000 (17:23 -0700)]
Add uuid to host record returned by host_get_record. libxen fails to parse the host record with this field missing.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
awilliam@xenbuild.aw [Mon, 13 Nov 2006 18:24:30 +0000 (11:24 -0700)]
[IA64] Fix xencomm for xm mem-set command
This patch saves and restores the hypercall parameter within xencomm.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Mon, 13 Nov 2006 18:02:37 +0000 (11:02 -0700)]
[IA64] Fix HVM interrupts on IPF
Xen has changed to set-irq-level hypercall from shared-memory PIC stat.
This patch makes IPF accomodate this change
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Mon, 13 Nov 2006 17:56:08 +0000 (10:56 -0700)]
[IA64] create minimal vlapic.h
This fixes the ia64 build for xen-unstable.hg cset 12368:
fda15861731e
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Mon, 13 Nov 2006 16:58:23 +0000 (09:58 -0700)]
merge with xen-unstable.hg
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:25:48 +0000 (14:25 +0000)]
[IOEMU] Simply fake-bios init of the piix4acpi device.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:20:26 +0000 (14:20 +0000)]
[HVM][IA64] Due to IPF Guest Firmware will enumerate PCI, shutdown in
IPF doesn't work This patch makes shutdown work for IPF.
Signed-off-by, Anthony Xu <anthony.xu@intel.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:12:01 +0000 (14:12 +0000)]
[XEN] x86-64: don't compile some unused machine check code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:11:08 +0000 (14:11 +0000)]
[XEN] x86-64: don't compile some unused MTRR code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:02:37 +0000 (14:02 +0000)]
[XEN Remove a stray newline in a printk.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:01:17 +0000 (14:01 +0000)]
[TOOLS] Add more checks for devel packages.
On different systems I ran into different build failures that can be
made more understandable by adding appropriate -devel package
installation checks.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:58:08 +0000 (13:58 +0000)]
[XEN] Return -ENOSYS for undefined sub-functions.
Provides forward compatibility (allowing unambiguous detection of
unimplemented functionality).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:50:14 +0000 (13:50 +0000)]
[XEN] x86-64: Since all memory is visible to Xen on x86-64, there is
no need to allocate from the special Xen heap for allocations specific
to this subarch.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:40:21 +0000 (13:40 +0000)]
[XEN] eliminate unused {g,i}dt{,_descr}
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:39:16 +0000 (13:39 +0000)]
[XEN] x86-64: eliminate __GUEST_[CDS]S*
These duplicate the FLAT_KERNEL_* values also used for x86-32.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:37:54 +0000 (13:37 +0000)]
[LINUX] Fix clear_fixmap().
On i386-PAE, clear_fixmap() results in ill use of set_pte(). In all
contexts, p2m translations shouldn't occur here. Note that this is not
really an issue on native linux, as there is
(a) no pfn-to-mfn translation and
(b) __set_fixmap() takes an unsigned long physical address rather than
a paddr_t, which makes it so that bits 32 and up of the physical
address are always zero, permitting either order store when
clearing the entry.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 12:06:21 +0000 (12:06 +0000)]
[XEN] Add const to variable_test_bit() addr parm.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 12:01:43 +0000 (12:01 +0000)]
[XEN] Get rid of many uses of domain_crash_synchronous().
It is much more dangerous than domain_crash() because it
stops execution of teh current context regardless of
current state (e.g., IRQs disabled, locks held).
The preferred method to crash a domain is domain_crash()
and error return to the caller.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Mon, 13 Nov 2006 10:43:29 +0000 (10:43 +0000)]
Fix handling of the entries-per-domain quota. Entries which are created by
the guest but deleted by dom0 were remaining accounted against the guest,
which meant that the guest would eventually run out of quota.
This patch also prevents unprivileged domains from changing the owner of a
node. One guest could attack another by creating nodes and then transferring
them to the ownership of another, and though the accounting could be made to
work properly in this case, domains should never be transferring nodes in any
case, so it seems safer just to disallow the operation entirely.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 09:49:12 +0000 (09:49 +0000)]
[VMX] A few small cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Mon, 13 Nov 2006 09:46:05 +0000 (09:46 +0000)]
[IOEMU] Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"
When console=ttyS0 in guest grub configuration and serial='pty' in vmx
configure file. The root cause to this bug is the characteristic of
PTY emulator in Qemu. PTY has write/read end with some buffer. Write
to a buffer will be failed after the buffer is full until read end
reads the data from buffer.
Previous to changeset 12026, write to serial port would fail quietly
when buffer for pty is full. With changeset 12026, write to serial
port would retry 3 times in 300ms if failed, even without notifying
guest using serial irq. Smp guest will hang, waiting for an
interrupt. For SMP guest, a watchdog thread should be executed
periodically, otherwise soft lockup is detected. With this patch, an
upper threshold of total consecutive retries is added and serial
interrupt would be sent after retry 3 times for each write request,
even if failed.
Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:40:16 +0000 (01:40 +0000)]
[PRIVCMD] Fix build warning when sizeof(long) > sizeof(int).
Original patch from Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:25:00 +0000 (01:25 +0000)]
[LIBFS] IA64 & PPC aren't making use of this right now, but it's silly to
have the build fail for some trivial x86 specific assembly. I snagged the
appropriate bitops for ia64 and ppc (untested) and tossed in an
unoptimized option as well in case we want to make use of it.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:23:11 +0000 (01:23 +0000)]
[XENSTORED] Fix errno 'leak' in xenstored.
In certain cases, when a client doesn't have enough permissions, the
errno variable is not set in xenstored_core.c before its value is
reported back. As a result, the client can learn about the errno of
the last failed request to xenstored (which could have come from
another client). (An unintended information channel! :-)
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:19:26 +0000 (01:19 +0000)]
qemu error message for xc_domain_translate_gpfn_list() failure incorrect
Signed-off-by: Russell Blaine <russell.blaine@sun.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:17:57 +0000 (01:17 +0000)]
Fix integer overflow problem with libfsimage grub plugins.
Signed-off-by: John Levon <john.levon@sun.com>
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:16:40 +0000 (01:16 +0000)]
[VMXASSIST] Support all data segments in mov_to_seg().
This patch lets Plan9 crash at the same location before the original
patch by Stephen Tweedie.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 20:01:23 +0000 (13:01 -0700)]
[IA64] Guest PAL_INIT support for IPI
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:55:52 +0000 (12:55 -0700)]
[IA64] fix merge error
Fix cut-n-paste error from manually merging patch
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:37:34 +0000 (12:37 -0700)]
[IA64] faults.c indentation
Run arch/ia64/xen/faults.c through Lindent to make it manageble.
Signed-off-by: Jes Sorensen <jes@sgi.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:04:55 +0000 (12:04 -0700)]
[IA64] Remove unused function in efi.c
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:03:19 +0000 (12:03 -0700)]
[IA64] Fix time services of EFI emulation
This patch serializes the execution of following efi.runtimes.
- GetTime
- SetTime
- GetWakeTime
- SetWakeTime
Linux/ia64 uses similar spinlocks in the EFI RTC driver.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:44:38 +0000 (11:44 -0700)]
[IA64] Support Xen/IA64 self-grant-table-page-mapping.
Before the changeset 10677:
2937703f0ed0 of xen-unstable.hg,
it is prohibited mapping a page which is granted by self domain.
However it is allowed in order to mount blktap image by dom0.
This patch is necessary to support blktap on Xen/IA64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:34:39 +0000 (11:34 -0700)]
[IA64] preliminary clean up ia64 mm.c for blktap dom0 mount support.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 10 Nov 2006 18:27:35 +0000 (18:27 +0000)]
[HVM] vlapic: No use of domain_crash_synchronous().
The safer domain_crash() is sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 10 Nov 2006 18:20:49 +0000 (18:20 +0000)]
[HVM] Simplify apic dest-matching code. Refactor
across vlapic/vioapic source files to reduce code
duplication.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:19:57 +0000 (11:19 -0700)]
[IA64] Fix SMP Windows boot failure
Sometime SMP Windows can't boot, the root cause is guest timer interrupt
is lost.
This patch fixes following issues.
1. Windows uses different way to sync itc.
2. Previously when Guest timer fires and guest ITV is masked, XEN will
desert this Guest timer interrupt. It is not correct for windows,
windows may expect this timer interrupt.
3. Windows may use different way to set timer in some situations.
Windows first sets itm (which may be smaller than current itc), and
then sets itc (which is samller than itm).
XEN can support this way to set timer.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:19:51 +0000 (11:19 -0700)]
[IA64] fix vmx handler fault
This patch fixes the vmx fault handler to set the fault vector
number in r19. The r19 is used to display a fault message in
dispatch_to_fault_handler().
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:51 +0000 (11:14 -0700)]
[IA64] fix VTI boot
workaroud patch for memory initial interface
Signed-off-by: zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:47 +0000 (11:14 -0700)]
[IA64] build fixes
Add defines to fix hvm_vioapic and trivial warning fix.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>